package cn.edu.bupt.scidata.service;

import cn.edu.bupt.scidata.model.project.*;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ProjectService {

    Page<ElasticSearchProject> fetchAll(int size, int page, String sort);

    MySQLProject getByApproval(String approval);

    List<Results> getResultsByApproval(String approval);

    List<MySQLProject> getResearcherProjects(String manager, String institute);

    Trace traceProjectByApproval(String approval);

    Trend trendProjectByApproval(String approval);

    Page<ElasticSearchProject> search(int size, int page, String keyword, String time, String code, String sort);

    Map<Integer, List<MySQLProject>> getResearcherProjectsByApproval(String approval);
}
